// 导包
import VueRouter from 'vue-router'
import Vue from 'vue'
// 注册
Vue.use(VueRouter);
// 实例化
import layout from '@/views/layout/layout.vue'
const router = new VueRouter({
    routes: [{
        path: '/',
        redirect: '/layout'
    }, {
        path: '*',
        redirect: '/layout'
    }, {
        path: '/layout',
        component: layout
    },
    
]
});
export { router }
// 注入
// 路由出口